package inutan.common.entity.Id;

import inutan.common.generator.UserIdGenerator;
import org.ricks.orm.AbstractEntity;
import org.ricks.orm.PlayerId;
import org.ricks.orm.anno.Column;
import org.ricks.orm.anno.IndexKey;
import org.ricks.orm.anno.PrimaryKey;

/**
 * 每个玩家只有一条数据，主键就是uid
 */
public class GameLongIdEntity<K> extends AbstractEntity<K,Long> {

    @PrimaryKey()
    @PlayerId
    @Column(comment = "ID")
    @IndexKey
    private Long id = UserIdGenerator.generator();


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

}
